#include "resource.h"

s_object objBullet;
s_object objGameover;
s_object objWorld[10];
s_openal effect_laser;

void init_resource()
{
    s_bitmap temp;
    
    //Het laden van de model bullet:
    LoadMesh("models//bullet.obj",&objBullet.model);
    DML_LoadBitmap("texture_bullet_l.tga",&temp);
    objBullet.textureid=DML_CreateTextureGL(temp);
    DML_DeleteBitmap(&temp);
    
    //Het laden van de model gameover:
    LoadMesh("models//gameover.obj",&objGameover.model);
    DML_LoadBitmap("texture_bullet_l.tga",&temp);
    objGameover.textureid=DML_CreateTextureGL(temp);
    DML_DeleteBitmap(&temp);
    
    //Het laden van de model World part1:
    LoadMesh("models//world_part1.obj",&objWorld[0].model);
    DML_LoadBitmap("world_part1_l.tga",&temp);
    objWorld[0].textureid=DML_CreateTextureGL(temp);
    DML_DeleteBitmap(&temp);
    
    //Het laden van de model World part2:
    LoadMesh("models//world_part2.obj",&objWorld[1].model);
    DML_LoadBitmap("world_part2_l.tga",&temp);
    objWorld[1].textureid=DML_CreateTextureGL(temp);
    DML_DeleteBitmap(&temp);
    
    //Laad effect laser
    LoadWav("audio//laser.wav",&effect_laser,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f);
}
